import { request } from 'ice';

export default {
  // 获取平台地址
  async getPlatformAddrDetail() {
    return await request.get('/operating/platform/address/get');
  },
  // 新增、编辑平台地址
  async savePlatformAddr(data: AddressState.AddressItem) {
    return await request.post('/operating/platform/address/save', data);
  },
  // 获取卖家地址
  async getSellerAddrDetail() {
    return await request.get('/logistics/seller/address/get');
  },
  // 新增、编辑卖家地址
  async saveSellerAddr(data: AddressState.AddressItem) {
    return await request.post('/logistics/seller/address/save', data);
  },
};
